import { View } from "@tarojs/components";
import { AtButton } from "taro-ui";
import Taro from "@tarojs/taro";
import GlobalFooter from "../../components/GlobalFooter";
import "./index.scss";

/**
 * 主页
 */
export default () => {
  return (
    <View className="pageImage indexPage">
      <View className="content">
        <View className="at-article__h1 title">MBTI 性格测试</View>
        <View className="at-article__h2 subTitle">
          只需 2 分钟，就能非常准确地描述出你是谁，以及你的性格特点
        </View>
        <AtButton
          type="primary"
          circle
          className="enterBtn"
          onClick={() => {
            Taro.navigateTo({
              url: "/pages/doQuestion/index",
            });
          }}
        >
          开始测试
        </AtButton>
      </View>
      <GlobalFooter />
    </View>
  );
};
